package org.anotes.springexample.aop.example1;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * User: gmc
 * Date: 13/04/12
 */
@Component
@Scope("prototype")
public class Teacher extends Person {

    public void teach(){
        logger.info(name+" is teaching");
    }
}
